package Lab6;
import javax.swing.*;
import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * User: boo
 * Date: 19.11.13
 * Time: 13:49
 * To change this template use File | Settings | File Templates.
 */
public class MainGraph extends JFrame {

     public MainGraph() {
         super( "DrawGraph" );
         setSize(540, 480);
        show();
    }
    public void paint (Graphics g){
        ModelGraph bo = new ModelGraph();
        g.setColor(Color.BLACK);
        g.fillRect(0,0,540,480);

        bo.boo();
        g.setColor(Color.RED);
        for (int i=0;i<bo.getVertexNum();i++)
        g.fillOval (270+(30*i),240,20,20);


    }

    public static void main(String[] args){

        MainGraph boo = new MainGraph();

    }
}
